// method 1 : not params
var nowd1 = new Date();
console.log(nowd1)
console.log(nowd1.toLocaleString());
console.log(nowd1.getMonth())
console.log(nowd1.getTime()); // 时间戳  1749739777168   13位  python是10位
// method 2 : string of params Date
var d2 = new Date("2024/12/6 11:32")
console.log(d2.toLocaleString());
var d3 = new Date("04/03/20 11:30");
console.log(d3.toLocaleString());